package net.cyl.mapper;

import net.cyl.model.TrafficDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 流量包信息表 Mapper 接口
 * </p>
 *
 * @author 曹玉林
 * @since 2025-05-09
 */
@Mapper
public interface TrafficMapper extends BaseMapper<TrafficDO> {

    int addDayUsedTimes(@Param("accountNo") Long accountNo,@Param("trafficId") Long trafficId,@Param("usedTimes") Integer usedTimes);

    int releaseUsedTimes(@Param("accountNo") Long accountNo,@Param("trafficId") Long trafficId,@Param("usedTimes") Integer usedTimes,@Param("useDateStr") String useDateStr);
}
